package com.macro.mall.shop.service;

import com.macro.mall.model.PmsProduct;
import com.macro.mall.shop.dto.PmsBrandDto;
import com.macro.mall.model.PmsBrand;

import java.util.List;

/**
 * DemoService接口
 */
public interface DemoService {
    List<PmsBrand> listAllBrand();

    int createBrand(PmsBrandDto pmsBrandDto);

    int updateBrand(Long id, PmsBrandDto pmsBrandDto);

    int deleteBrand(Long id);

    List<PmsBrand> listBrand(int pageNum, int pageSize);

    PmsBrand getBrand(Long id);
    /**
     * 分页获取商品列表
     */
    List<PmsProduct> shopProductList(Integer pageNum, Integer pageSize, Integer brandId);
    /**
     * 根据编号查询商品信息
     */
    PmsProduct getGoods(Long id);
}
